package top.healthylife.docx4jhelper.test.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.healthylife.docx4jhelper.annotation.Docx4j;
import top.healthylife.docx4jhelper.annotation.Docx4jField;
import top.healthylife.docx4jhelper.base.Docx4jBaseTpl;
import top.healthylife.docx4jhelper.enums.Docx4jNodeType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author : GaoZeXi
 * @date 2022/1/18 10:57
 */
@Data
@Accessors(chain = true)
@ApiModel("演示类:word变量替换")
@Docx4j
public class Docx4jSimpleStartDemo extends Docx4jBaseTpl {

    @ApiModelProperty("Id")
    private String id;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("标题")
    @Docx4jField(bookmarkName = "tittle")
    private String title;

    @ApiModelProperty("test")
    private String test;

    @ApiModelProperty("test2")
    private String test3;

    @ApiModelProperty("模板内容")
    private String content;

    @ApiModelProperty("类型1-短信、2-邮件、3-文档")
    private Integer type;

    @ApiModelProperty("头像")
    @Docx4jField(type = Docx4jNodeType.IMAGE)
    private String imageUrl;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("租户id")
    private Integer tenantId;
}
